home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c++
- Subject: Re: Why use a reference on a ptr foo(int &*parm) as a formal parm ?
- Date: Sun, 11 Feb 1996 14:15:35 GMT
- Organization: Netcom
- Message-ID: <311df8d2.156885178@nntp.ix.netcom.com>
- References: <311DC7A8.2A1C@worldcom.ch>
- NNTP-Posting-Host: ix-dc12-11.ix.netcom.com
- X-NETCOM-Date: Sun Feb 11 6:15:05 AM PST 1996
- X-Newsreader: Forte Agent .99d/32.182
-
- Jean-Pierre Schnyder <jschnyde@worldcom.ch> wrote:
-
- > Hi,
- >
- > I'm not sure to understand the rationale for this technique. Any idea ?
-
- The most common reason is that one doesn't want the program to
- compile, so one codes a syntax error.
-
- Perhaps you mean
-
- Why use a reference on a ptr foo(int *&parm) as a formal parm?
-
- This makes parm a reference to a pointer to int and allows one to
- change the value in the caller.
-
-
- Michael M Rubenstein
-